/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.fesppr.sacob.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author alexandre
 */
public class Util {
    
    
    public static Connection getSacobConnection(){
        
        Connection con = null;
        
        try {
            Class.forName("org.postgresql.Driver");
            con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/sacob",
                    "sacob",
                    "sacob");
        } catch (Exception ex) {
            ex.printStackTrace();
            Logger.getLogger(Util.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return con;
        
    }
}
